<template>
    <!-- 插槽 -->
    <slot-public>
        <h4>匿名插槽</h4>

        <p slot='lee'>具名插槽</p>

        <template slot-scope="user">
            <ul>
                <li v-for="item in user.data" :key='item.id'>{{item}}</li>
            </ul>
        </template>
    </slot-public>
</template>


<script>
import slotPublic from "../components/slot_module.vue";
export default {
    name: 'slots',
    data(){
        return {}
    },
    components: {
        slotPublic
    }
}
</script>
